<!--
 * @Author: tangz
 * @Date: 2020-07-30 00:35:26
 * @LastEditors: tyl
 * @LastEditTime: 2022-04-29 18:24:47
 * @Description: 组件示例
-->
<template>
  <div id="app">
    <h1>工单组件</h1>
    <span style="width: 400px; display: inline-block">啊啊啊啊</span>
    <span>啊啊啊啊</span>
    <div ref="myContainer" class="container">
      <div class="item"></div>
    </div>
    <!-- <vue-drag-resize :isDraggable="false">
      <div>ssss</div>
    </vue-drag-resize> -->
    <yaoudWpClient ref="myYaoudWpClient"></yaoudWpClient>
  </div>
</template>

<script>
import { yaoudWpClient } from "../packages";
//import myMenus from "./hismenus.js";
import myMenus from "./menus.js";
//import VueDragResize from "vue-drag-resize";

export default {
  name: "App",
  components: {
    yaoudWpClient,
  },
  data() {
    return {
      getLoginData: () => {
        return {
          client: "10000003",
          clientName: "苏州公约树信息技术科技有限公司-开发区",
          loginAccount: "18862347184",
          loginName: "吕西西",
          userId: "1025",
          stoName: "苏州健康单体药房",
          stoCode: "1000000001",
        };
        // return {
        //   client: "10000005",
        //   clientName: "",
        //   loginAccount: "yq0001",
        //   loginName: "杨权的医助001",
        //   userId: "525",
        //   stoName: "湖南长沙开福区济世诊所3",
        //   stoCode: "10024",
        // };
      },
      getCurrentPage: () => {
        return "/workFlowApproving";
        //return "/distributeSaleList";
        //return "/prescri/prescription";
      },
    };
  },
  mounted() {
    this.$refs.myYaoudWpClient.clientInit({
      LoginData: this.getLoginData,
      MenuList: myMenus,
      CurrentPage: this.getCurrentPage,
      sysId: "1",
    });
  },
  methods: {},
};
</script>

<style lang="less">
#app {
  background: #fff;
}
.myPan {
  width: 100%;
  height: 300px;
  background-color: pink;
}
body {
  background-color: rgb(333, 222, 111);
}
// .container {
//   width: 200px;
//   height: 200px;
//   border: #00cdcd 2px solid;
//   box-sizing: border-box;
//   .item {
//     cursor: default;
//     width: 100%;
//     height: 100%;
//     background: #757575;
//   }
// }
</style>
